package com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipment.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * @Author Link
 * @date 2023/5/19
 * 资产新增请求参数
 */
@Data
@Schema(name = "资产新增请求参数")
@EqualsAndHashCode
public class RoomEquipmentImport {
    /**
     * 内部资产编码
     */
    @Schema(name = "内部资产编码")
    private Long id;

    @Schema(name = "资产类别ID")
    @ExcelProperty(index = 1)
    private Long categoryId;

    @Schema(name = "使用期限")
    @ExcelProperty(index = 2)
    private String shelfLife;

    @Schema(name = "计量单位")
    @ExcelProperty(index = 3)
    private String unit;
    @Schema(name = "资产名称")
    @NotNull(message = "请输入资产名称")
    @ExcelProperty(index = 4)
    private String name;

    @Schema(name = "规格")
    @ExcelProperty(index = 5)
    private String specification;
    /**
     * 定价
     */
    @Schema(name = "定价")
    @ExcelProperty(index = 6)
    private Double price;
    /**
     * 所属方
     */
    @Schema(name = "所属方")
    @ExcelProperty(index = 7)
    private String own;
    /**
     * 具体方位
     */
    @Schema(name = "具体方位")
    @ExcelProperty(index = 8)
    private String position;
    /**
     * 资产品牌
     */
    @Schema(name = "资产品牌")
    @ExcelProperty(index = 9)
    private String  brand;
    /**
     * 售后电话
     */
    @Schema(name = "售后电话")
    @ExcelProperty(index = 10)
    private String afterSalesTel;
    /**
     * 购买时间
     */
    @Schema(name = "购买时间")
    @ExcelProperty(index = 11)
    private LocalDate purchaseTime;
    /**
     * 保修截止时间
     */
    @Schema(name = "保修时间")
    @ExcelProperty(index = 12)
    private LocalDate warrantyTime;
    /**
     * 购买价格
     */
    @Schema(name = "购买价格")
    @ExcelProperty(index = 13)
    private Double purchasePrice;
    /**
     * 备注
     */
    @Schema(name = "备注")
    @ExcelProperty(index = 14)
    private String remake;

    @Schema(name = "资产编码")
    @ExcelProperty(index = 15)
    private String code;

    @Schema(name = "关联的房间ID")
    @ExcelProperty(index = 16)
    private Integer roomId;

    @Schema(name = "公寓ID")
    @ExcelProperty(index = 17)
    private Long apartmentId;

    @Schema(description = "房源ID")
    @ExcelProperty(index = 18)
    private Long roomHouseId;

    @Schema(description = "是否是公区")
    @ExcelProperty(index = 19)
    private Boolean isPub;

    @Schema(name = "资产状态")
    private String status;
    /**
     * 位置类型
     */
    @Schema(name = "位置类型")
    private String positionType;

    /**
     * 供应商ID
     */
    @Schema(name = "供应商ID")
    private Integer supplierId;

    /**
     * 负责人ID
     */
    @Schema(name = "负责人ID")
    private Integer managerId;
    /**
     * 负责人名称
     */
    @Schema(name = "负责人名称")
    private String manager;


    /**
     * 图片列表,最多五张。url用逗号分割
     */
    @Schema(name = "图片列表,最多五张")
    private String pic;

}